﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.Objects.DataClasses;
using System.Runtime.Serialization;

namespace CoolCode.Tests.Data.Entity
{
    [EdmEntityType(NamespaceName = "NorthwindModel", Name = "Customers")]
    [DataContract(IsReference = true)]
    [Serializable]
    public partial class Customers : EntityObject
    {
        [EdmScalarProperty(EntityKeyProperty = true, IsNullable = false)]
        [DataMember]
        public string CustomerID { get; set; }

        [EdmScalarProperty(IsNullable = false)]
        [DataMember]
        public string CompanyName { get; set; }

        [EdmScalarProperty()]
        [DataMember]
        public string Address { get; set; }

        [EdmScalarProperty()]
        [DataMember]
        public string City { get; set; }

        [EdmScalarProperty()]
        [DataMember]
        public string ContactName { get; set; }

        [EdmScalarProperty()]
        [DataMember]
        public string ContactTitle { get; set; }

        [EdmScalarProperty()]
        [DataMember]
        public string Country { get; set; }

        [EdmScalarProperty()]
        [DataMember]
        public string Fax { get; set; }

        [EdmScalarProperty()]
        [DataMember]
        public string Phone { get; set; }

        [EdmScalarProperty()]
        [DataMember]
        public string PostalCode { get; set; }

        [EdmScalarProperty()]
        [DataMember]
        public string Region { get; set; }
    }
}
